package com.wzcl.app.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author beingven
 * @Description TODO
 * @createTime 2020年11月22日 08:46:00
 */
@Data
public class IosOrdersDto {
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @ApiModelProperty(value = "订单编号")
    private String no;

    @ApiModelProperty(value = "用户Id")
    private Integer userId;

    @ApiModelProperty(value = "用户手机")
    private String userPhone;

    @ApiModelProperty(value = "创建时间")
    @CreatedDate
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @LastModifiedDate
    private Date updateTime;

    @ApiModelProperty(value = "状态")
    private Integer state;

    @ApiModelProperty(value = "支付状态")
    private Integer payState;

    @ApiModelProperty(value = "订单价格(原价)")
    private BigDecimal money;

    @ApiModelProperty(value = "商品价格（现价）")
    private BigDecimal productMoney;

    @ApiModelProperty(value = "实际付款金额")
    private BigDecimal payMoney;

    @ApiModelProperty(value = "订单状态")
    private Integer ordersState;

    @ApiModelProperty(value = "快递状态")
    private Integer deliveryState;

    @ApiModelProperty(value = "是否需要快递货物")
    private Boolean needDelivery;

    @ApiModelProperty(value = "生成订单的接口标记")
    private String createFrom;

    @Override
    public String toString() {
        return "IosOrdersDto{" +
                "id=" + id +
                ", no='" + no + '\'' +
                ", userId=" + userId +
                ", userPhone='" + userPhone + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", state=" + state +
                ", payState=" + payState +
                ", money=" + money +
                ", productMoney=" + productMoney +
                ", payMoney=" + payMoney +
                ", ordersState=" + ordersState +
                ", deliveryState=" + deliveryState +
                ", needDelivery=" + needDelivery +
                ", createFrom='" + createFrom + '\'' +
                '}';
    }
}
